package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.LowCodeRetaionDao;
import com.xbongbong.admin.domain.entity.LowCodeRetaionEntity;
import com.xbongbong.admin.model.LowCodeRetaionModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 低代码备份
 * @author 李少杰
 */
@Service("lowCodeRetaionModel")
public class LowCodeRetaionModelImpl implements LowCodeRetaionModel {
    @Resource
    private LowCodeRetaionDao lowCodeRetaionDao;


    @Override
    public Integer insert(LowCodeRetaionEntity entity) {
        return lowCodeRetaionDao.insert(entity);
    }

    @Override
    public void insertBatch(List<LowCodeRetaionEntity> list) {
        lowCodeRetaionDao.insertBatch(list);
    }

    @Override
    public List<LowCodeRetaionEntity> findEntities(Map<String, Object> param) {
        return lowCodeRetaionDao.findEntities(param);
    }

    @Override
    public Integer getEntityCount(Map<String, Object> param) {
        return lowCodeRetaionDao.getEntitiesCount(param);
    }

    @Override
    public Integer update(LowCodeRetaionEntity entity) {
        return lowCodeRetaionDao.update(entity);
    }

    @Override
    public List findEntitys(Map<String, Object> param) {
        return lowCodeRetaionDao.findEntities(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return null;
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return lowCodeRetaionDao.findEntities(param);
    }

    @Override
    public LowCodeRetaionEntity getByKey(Long key, String corpid) {
        return lowCodeRetaionDao.getByKey(key, corpid);
    }

}
